package routes

import (
	"invitation/internal/application"
	"invitation/internal/http/endpoints/invitation"
	"invitation/internal/http/middleware"

	"github.com/gofiber/fiber/v2"
)

func RegisterInvitationRoutes(app *fiber.App, application *application.Application, re *middleware.RequestExtractor) {
	generateGameRecommandationChain := []fiber.Handler{
		re.ParseUserInput(),
		invitation.GenerateEndpoint(application),
	}
	app.Post("/invitation/generate", generateGameRecommandationChain...)
}
